//index.js
//获取应用实例
const app = getApp()
//logs.js
var api = require('../../utils/api.js')
var {
  $Message
} = require('../../dist/base/index');

Page({
  data: {
    userInfo: {},
    isBluLink: false,
    spinShow: false,
    overTimeRemindModalVisable: false,
    overTimeNum: -1,
    modalVisable: false,
    loadText: "正在链接蓝牙,请稍等",
    functionArr: [],
    scanBarVisable: false,
    scanBarAction: [{
      name: '取消'
    }, {
      name: '扫码',
      color: '#ff9900'
    }],
    actionsModal: [{
      name: '取消'
    }, {
      name: '打开',
      color: '#ff9900'
    }],
    baseFunc: [{
        "title": "投递记录",
        "img_url": "http://pomeloorganizationqiniu.proke.top/me_sign_in.png"
      },
      {
        "title": "我的信息",
        "img_url": "http://pomeloorganizationqiniu.proke.top/my_profile.png"
      },
      {
        "title": "切换角色",
        "img_url": "http://smartboxqiniu.proke.top/switch_role.png"
      },
      {
        "title": "反馈",
        "img_url": "http://pomeloorganizationqiniu.proke.top/user_commit.png"
      },
      {
        "title": "账户余额",
        "img_url": "http://smartboxqiniu.proke.top/balance_icon.png"
      },
      {
        "title": "关于",
        "img_url": "http://smartboxqiniu.proke.top/smartBox_logo_512.png"
      }
    ],
    meFunctionArr: [{
        "title": "我的信息"
      },
      {
        "title": "取件记录"
      },
      {
        "title": "反馈"
      },
      {
        "title": "关于"
      }
    ],
    user_phone: ""
  },
  onLoad: function () {
    
  },
  onShow: function () {
    
  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function (res) {

  },
  do_sign_in(){
    wx.navigateTo({
      url: '/pages/signIn/index',
    })
  },
  do_model(){
    wx.navigateTo({
      url: '/pages/contactPage/index',
    })
  },
  click_me_block(){
    wx.navigateTo({
      url: "/pages/meFunc/index"
    })
  }
})